<?php
/**
 * Created by PhpStorm.
 * User: yellow
 * Date: 2019/4/24
 * Time: 15:07
 */

namespace app\common\model;


use think\Model;

class LoginLog extends Model
{

    protected $autoWriteTimestamp = true;

    protected $insert = ['ip'];

    protected function setIpAttr()
    {
        return request()->ip();
    }

}